package org.ruoyi.graph2.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.ruoyi.common.core.validate.AddGroup;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.graph2.domain.GraphBase;

import java.io.Serializable;
import java.util.Date;

/**
 * 图谱基础信息表业务对象 graph_base
 *
 * @author ageerle
 * @date Tue Nov 18 15:28:04 CST 2025
 */
@Data

@AutoMapper(target = GraphBase.class, reverseConvertGenerate = false)
public class GraphBaseBo implements Serializable {

    private Long id;

    /**
     * 租户编号
     */
    private String tenantId;
    /**
     * 图谱UUID
     */
    @NotBlank(message = "图谱UUID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String graphGroup;
    /**
     * 图谱名称
     */
    private String graphTitle;
    /**
     * 总节点数
     */
    private Integer totalNodes;
    /**
     * 总关系数
     */
    private Integer totalRelationships;
    /**
     * 节点类型分布(JSON格式)
     */
    private String nodeTypeDistribution;
    /**
     * 关系类型分布(JSON格式)
     */
    private String relationTypeDistribution;
    /**
     * 创建者
     */
    private Long createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新者
     */
    private Long updateBy;
    /**
     * 更新时间
     */
    private Date updateTime;

}
